

<form action="./m.php?frm=action&mdl=index" name="iForm" id="iForm" method="post" target="eBody">
	<input type="hidden" name="formAction" id="formAction" value="{$_act.frm}.{$_act.mdl}_{$_act.do}" />
	<input type="hidden" name="id" id="id" value="{$info.id}" />

	<!-- 基本设置 START -->
	<!-- {if $_g._mp_admin_setting_base} -->
	<table id="st_base" border="0" align="center" cellpadding="0" cellspacing="1" class="data_form">
		<caption>基本设置</caption>
		<tbody>
			<tr>
				<th style="width:120px;">商城名称：</th>
				<td><input type="text" name="sysvar[1]" value="{$sysvar.1.value}" class="input" style="width:360px;"></td>
			</tr>
			<tr>
				<th>热门搜索：</th>
				<td><textarea name="setting[search_hot_keyword]" class="textarea" style="width:480px;">{$sysvar.search_hot_keyword}</textarea></td>
			</tr>
			<tr>
				<th>关键字：</th>
				<td><textarea name="sysvar[2]" class="textarea" style="width:480px;">{$sysvar.2.value}</textarea></td>
			</tr>
			<tr>
				<th>描述：</th>
				<td><textarea name="sysvar[3]" class="textarea" style="width:480px;">{$sysvar.3.value}</textarea></td>
			</tr>
			<tr>
				<th>商城公告：</th>
				<td><textarea name="sysvar[4]" class="textarea" style="width:480px;">{$sysvar.4.value}</textarea></td>
			</tr>
			<tr>
				<th>备案信息代码：</th>
				<td><input type="text" name="sysvar[5]" value="{$sysvar.5.value}" class="input" style="width:240px;"></td>
			</tr>
		</tbody>
		<tfoot><tr><th></th><td></td></tr></tfoot>
	</table>
	<br />
	<br />
	<!-- {/if} -->
	<!-- 基本设置 END -->

	<!-- 静态化设置 START -->
	<!-- {if $_g._mp_admin_setting_base} -->
	<table id="st_static" border="0" align="center" cellpadding="0" cellspacing="1" class="data_form">
		<caption>静态化设置</caption>
		<tbody>
			<tr>
				<th style="width:120px;">静态化：</th>
				<td><label><input type="radio" name="sysvar[10]" value="html" {if $sysvar.10.value == 'html'}checked{/if} />静态化（会生成HTML文件，触发式）</label><br />
					<label><input type="radio" name="sysvar[10]" value="rewrite" {if $sysvar.10.value == 'rewrite'}checked{/if} />伪静态</label><br />
					<label><input type="radio" name="sysvar[10]" value="php" {if $sysvar.10.value == 'php'}checked{/if} />动态（如果您的WEB环境不支持.htaccess，请选择此项）</label></td>
			</tr>
			<tr>
				<th>更新间隔：</th>
				<td><input type="text" name="sysvar[9]" value="{$sysvar.9.value}" class="input" style="width:80px;">
					秒（静态页面重新生成的时间间隔，此项仅在选择了【静态化】后有效）</td>
			</tr>
		</tbody>
		<tfoot><tr><th></th><td></td></tr></tfoot>
	</table>
	<br />
	<br />
	<!-- {/if} -->
	<!-- 静态化设置 END -->


	<!-- 邮箱设置 START -->
	<!-- {if $_g._mp_admin_setting_email} -->
	<table id="st_email" border="0" align="center" cellpadding="0" cellspacing="1" class="data_form">
		<caption>邮箱设置</caption>
		<tbody>
			<tr>
				<th style="width:120px;">服务器：</th>
				<td><input type="text" name="setting[email][host]" value="{$sysvar.email.host}" class="input" style="width:240px;"></td>
			</tr>
			<tr>
				<th>端口：</th>
				<td><input type="text" name="setting[email][port]" value="{$sysvar.email.port}" class="input" style="width:80px;"></td>
			</tr>
			<tr>
				<th>帐号：</th>
				<td><input type="text" name="setting[email][from]" value="{$sysvar.email.from}" class="input" style="width:480px;"></td>
			</tr>
			<tr>
				<th>密码：</th>
				<td><input type="text" name="setting[email][pass]" value="{$sysvar.email.pass}" class="input" style="width:160px;"></td>
			</tr>
			<tr>
				<th>显示名称：</th>
				<td><input type="text" name="setting[email][fromName]" value="{$sysvar.email.fromName}" class="input" style="width:240px;"></td>
			</tr>
			<tr>
				<th>回复地址：</th>
				<td><input type="text" name="setting[email][replyto]" value="{$sysvar.email.replyto}" class="input" style="width:480px;"></td>
			</tr>
		</tbody>
		<tfoot><tr><th></th><td></td></tr></tfoot>
	</table>
	<br />
	<br />
	<!-- {/if} -->
	<!-- 邮箱设置 END -->


	<!-- 配送支付 START -->
	<!-- {if $_g._mp_admin_setting_fee} -->
	<table id="st_fee" border="0" align="center" cellpadding="0" cellspacing="1" class="data_form">
		<caption>配送支付</caption>
		<tbody>
			<!-- {if $_g._mp_system_delivery_list} -->
			<tr>
				<th style="width:120px;">配送方式：</th>
				<td><a href="./m.php?frm=system&mdl=delivery&do=list">配送方式列表</a></td>
			</tr>
			<!-- {/if} -->
			<!-- {if $_g._mp_system_payment_list} -->
			<tr>
				<th>支付方式：</th>
				<td><a href="./m.php?frm=system&mdl=payment&do=list">支付方式列表</a></td>
			</tr>
			<!-- {/if} -->
		</tbody>
		<tfoot><tr><th></th><td></td></tr></tfoot>
	</table>
	<br />
	<br />
	<!-- {/if} -->
	<!-- 配送支付 END -->


	<!-- UCenter桥接配置 START -->
	<!-- {if $_g._mp_admin_setting_ucenter} -->
	<table id="st_ucenter" border="0" align="center" cellpadding="0" cellspacing="1" class="data_form">
		<caption>UCenter桥接配置</caption>
		<tbody>
			<tr>
				<th style="width:120px;">启用UCenter：</th>
				<td><label><input type="radio" name="setting[ucenter][using]" value="1" {if $sysvar.ucenter.using == '1'}checked{/if} />启用</label>
					<label><input type="radio" name="setting[ucenter][using]" value="0" {if $sysvar.ucenter.using == '0'}checked{/if} />停用</label></td>
			</tr>
			<tr>
				<th>访问地址：</th>
				<td><input type="text" name="setting[ucenter][url]" value="{$sysvar.ucenter.url}" class="input" style="width:240px;"></td>
			</tr>
			<tr>
				<th>IP：</th>
				<td><input type="text" name="setting[ucenter][ip]" value="{$sysvar.ucenter.ip}" class="input" style="width:80px;"></td>
			</tr>
			<tr>
				<th>AppID：</th>
				<td><input type="text" name="setting[ucenter][appid]" value="{$sysvar.ucenter.appid}" class="input" style="width:240px;"></td>
			</tr>
			<tr>
				<th>通信密钥：</th>
				<td><input type="text" name="setting[ucenter][authkey]" value="{$sysvar.ucenter.authkey}" class="input" style="width:480px;"></td>
			</tr>
			<tr>
				<th>连接方式：</th>
				<td><label><input type="radio" name="setting[ucenter][connect]" value="mysql" {if $sysvar.ucenter.connect == 'mysql'}checked{/if} />数据库</label>
					<label><input type="radio" name="setting[ucenter][connect]" value="api" {if $sysvar.ucenter.connect == 'api'}checked{/if} />接口</label></td>
			</tr>
		</tbody>
		<tbody id="uc_connect_mysql" style="display:none;">
			<tr>
				<th>数据库服务器：</th>
				<td><input type="text" name="setting[ucenter][dbhost]" value="{$sysvar.ucenter.dbhost}" class="input" style="width:240px;"></td>
			</tr>
			<tr>
				<th>数据库用户名：</th>
				<td><input type="text" name="setting[ucenter][dbuser]" value="{$sysvar.ucenter.dbuser}" class="input" style="width:240px;"></td>
			</tr>
			<tr>
				<th>数据库密码：</th>
				<td><input type="text" name="setting[ucenter][dbpass]" value="{$sysvar.ucenter.dbpass}" class="input" style="width:240px;"></td>
			</tr>
			<tr>
				<th>数据库名：</th>
				<td><input type="text" name="setting[ucenter][dbname]" value="{$sysvar.ucenter.dbname}" class="input" style="width:480px;"></td>
			</tr>
			<tr>
				<th>表前缀：</th>
				<td><input type="text" name="setting[ucenter][dbtablepre]" value="{$sysvar.ucenter.dbtablepre}" class="input" style="width:480px;"></td>
			</tr>
			<tr>
				<th>数据加连接方式：</th>
				<td><label><input type="radio" name="setting[ucenter][dbconnect]" value="0" {if $sysvar.ucenter.dbconnect == '0'}checked{/if} />短连接</label>
					<label><input type="radio" name="setting[ucenter][dbconnect]" value="1" {if $sysvar.ucenter.dbconnect == '1'}checked{/if} />长连接</label></td>
			</tr>
		</tbody>
		<tbody>
			<tr>
				<th>头像调用方式：</th>
				<td><label><input type="radio" name="setting[ucenter][avatarmethod]" value="0" {if $sysvar.ucenter.avatarmethod == '0'}checked{/if} />使用动态地址调用头像</label>
					<label><input type="radio" name="setting[ucenter][avatarmethod]" value="1" {if $sysvar.ucenter.avatarmethod == '1'}checked{/if} />使用静态地址调用头像</label></td>
			</tr>
			<tr>
				<th>DiscuzX：</th>
				<td><input type="text" name="setting[ucenter][discuz]" value="{$sysvar.ucenter.discuz}" class="input" style="width:480px;"></td>
			</tr>
		</tbody>
		<tfoot><tr><th></th><td>
			在UCenter配置应用时，【应用的主 URL】请填写：http://域名/inc/libs/uc<br />
			同时，要将UCenter/data/cache/apps.php复制到uc_client/data/cache/目录下（覆盖原文件）
		</td></tr></tfoot>
	</table>
	<br />
	<br />
	<!-- {/if} -->
	<!-- UCenter桥接配置 END -->


	<!-- 后台设置 START -->
	<table id="st_bg" border="0" align="center" cellpadding="0" cellspacing="1" class="data_form">
		<caption>后台设置</caption>
		<tbody>
			<tr>
				<th style="width:120px;">{$l.username}：</th>
				<td>{$info.username}</td>
			</tr>
			<tr>
				<th>{$l.style}：</th>
				<td>{$info.styles}</td>
			</tr>
			<tr>
				<th>{$l.language}：</th>
				<td>{$info.languages}</td>
			</tr>
			{if $info.debugging}
			<tr>
				<th>{$l.debug}：</th>
				<td><label><input type="checkbox" name="debug_pr" value="1"{if $info.setting.debug_pr} checked{/if} class="chbox" />页面底部打印调试信息</label>
					<label><input type="checkbox" name="debug_fb" value="1"{if $info.setting.debug_fb} checked{/if} class="chbox" />FirePHP</label></td>
			</tr>
			{/if}
			<tr>
				<th>{$l.memo}：</th>
				<td><textarea name="memo" cols="" rows="" id="memo" class="textarea" style="width:480px;">{$info.memo}</textarea></td>
			</tr>
		</tbody>
		<tfoot id="cmd">
			<tr>
				<th><a id="cmd"><!-- CMD --></a></th>
				<td><input type="submit" name="btnSubmit" value="{$l.submit}" class="button" />
					<input type="reset" name="btnReset" value="{$l.reset}" class="button" /></td>
			</tr>
		</tfoot>
	</table>
	<!-- 后台设置 END -->

</form>
<script type="text/javascript" language="JavaScript" charset="utf-8">
<!--
	{literal}
	jQuery(function(){
		var uc_connect = $('input[type="radio"][name="setting[ucenter][connect]"]:checked').val();
		$('#uc_connect_'+uc_connect).show();
		$('input[type="radio"][name="setting[ucenter][connect]"]').click(function(){
			uc_connect = $(this).val();
			$(this).parents('tbody').siblings('tbody').hide();
			$('#uc_connect_'+uc_connect).show();
		});

		// 页面导航
		add_nav_btn({
			'dir'		: '#st_base'
			,'title'	: '滚动到基本设置'
			,'text'		: '基本'
			,'ttl'		: 100
		});
		add_nav_btn({
			'dir'		: '#st_static'
			,'title'	: '滚动到静态化设置'
			,'text'		: '静态化'
			,'ttl'		: 100
		});
		add_nav_btn({
			'dir'		: '#st_email'
			,'title'	: '滚动到邮箱设置'
			,'text'		: '邮箱'
			,'ttl'		: 100
		});
		add_nav_btn({
			'dir'		: '#st_fee'
			,'title'	: '滚动到配送支付'
			,'text'		: '配付'
			,'ttl'		: 100
		});
		add_nav_btn({
			'dir'		: '#st_ucenter'
			,'title'	: '滚动到UCenter桥接配置'
			,'text'		: 'UCenter'
			,'ttl'		: 100
		});
		add_nav_btn({
			'dir'		: '#st_bg'
			,'title'	: '滚动到后台设置'
			,'text'		: '后台'
			,'ttl'		: 100
		});
	});
	{/literal}
//-->
</script>